module.exports = app => {
    const seq = app.Sequelize;

    const Tag = app.model.define('tag', {
        id:{
            type:seq.INTEGER,
            autoIncrement:true,
            allowNull:false,
            primaryKey:true,
            unique:true
        },
        name:{
            type:seq.STRING,
            allowNull:false
        }
    },{
        timestamps:true,
        paranoid:true,
        underscored:false
    });

    Tag.associate=function () {

    };


    return Tag;
};